<<<<<<< HEAD
/* * @Author: Zhengxuan Ye * @Date: 2025-05-06 21:28:15 * @Last Modified by: Zhengxuan Ye * @Last
Modified time: 2025-05-06 21:28:15 */
=======
/*
 * @Author: Zhengxuan Ye
 * @Date: 2025-05-06 21:28:15
 * @Last Modified by:   Zhengxuan Ye
 * @Last Modified time: 2025-05-06 21:28:15
 */
>>>>>>> ba93636 (前端建设完成)

<template>
  <div class="featured-heritage-detail">
    <div class="container">
      <!-- 面包屑导航 -->
      <div class="breadcrumbs">
        <router-link to="/">首页</router-link> &gt;
        <router-link to="/heritage-list">遗产名录</router-link> &gt;
        <span>景泰蓝制作技艺</span>
      </div>

      <!-- 主要内容区 -->
      <div class="heritage-content">
        <!-- 遗产标题信息 -->
        <div class="heritage-header">
          <h1>景泰蓝制作技艺</h1>
          <div class="heritage-meta">
            <div class="heritage-meta-item">
              <span class="meta-label">所在地区:</span>
              <span class="meta-value">北京</span>
            </div>
            <div class="heritage-meta-item">
              <span class="meta-label">类别:</span>
              <span class="meta-value">传统技艺</span>
            </div>
            <div class="heritage-meta-item">
              <span class="meta-label">级别:</span>
              <span class="meta-value level-badge level-national">国家级</span>
            </div>
            <div class="heritage-meta-item">
              <span class="meta-label">认定时间:</span>
              <span class="meta-value">2006年</span>
            </div>
          </div>
        </div>

        <!-- 遗产详情主体 -->
        <div class="heritage-body">
          <div class="heritage-main">
            <!-- 图片展示区域 -->
            <div class="heritage-images">
              <div class="main-image">
                <img :src="currentImage" alt="景泰蓝制作技艺" class="main-image-content" />
                <div class="image-source">素材来源于中国非物质文化遗产网</div>
                <div class="image-caption">景泰蓝精美作品</div>
              </div>
              <div class="thumbnail-list">
                <div
                  v-for="(image, index) in images"
                  :key="index"
                  class="thumbnail"
                  @click="changeImage(image)"
                >
                  <img :src="image.src" :alt="image.title" class="thumbnail-image" />
                  <div class="thumbnail-title">{{ image.title }}</div>
                </div>
              </div>
            </div>

            <!-- 详细介绍 -->
            <div class="heritage-sections">
              <div class="heritage-section">
                <h2 class="section-title">简介</h2>
                <div class="section-content">
                  <p>
                    景泰蓝是中国传统的金属工艺品，是北京市最著名的传统手工艺品之一，以铜胎掐丝，填充色釉，经过烧制形成的工艺品，具有悠久的历史。景泰蓝在明代景泰年间(1450-1456)制作盛行，由于釉色以蓝色为主，故得名"景泰蓝"。
                  </p>
                  <p>
                    景泰蓝被誉为"中华国粹"，是中国工艺美术的瑰宝。景泰蓝集金属工艺、陶瓷工艺于一体，代表着中国传统金属工艺的最高水平，2006年被列入第一批国家级非物质文化遗产名录。
                  </p>
                </div>
              </div>

              <div class="heritage-section">
                <h2 class="section-title">历史渊源</h2>
                <div class="section-content">
                  <p>
                    景泰蓝的制作工艺源于唐宋，兴于元，盛于明清，是由西域工艺传入中国后与中国传统手工艺结合发展而成的。景泰蓝在明代景泰年间达到鼎盛，铜胎掐丝填珐琅的工艺技术已臻于完善，作品以蓝色为主色调，故称"景泰蓝"。
                  </p>
                  <p>
                    清代，景泰蓝工艺得到进一步发展，创造出许多杰出作品。近代以来，景泰蓝作为北京特产享誉国内外，成为国家级重要的非物质文化遗产。
                  </p>
                </div>
              </div>

              <div class="heritage-section">
                <h2 class="section-title">工艺特点</h2>
                <div class="section-content">
                  <p>
                    景泰蓝制作工艺复杂，主要包括制胎、掐丝、点蓝、烧制、打磨抛光等工序，需要经过几十道甚至上百道工序才能完成一件作品。
                  </p>
                  <p>主要工艺步骤：</p>
                  <ol>
                    <li><strong>制胎</strong>：用紫铜板按照设计图样制作器型</li>
                    <li><strong>掐丝</strong>：用细铜丝按照图案弯曲并焊接在铜胎表面</li>
                    <li><strong>点蓝</strong>：在掐丝形成的格子中填入不同颜色的琉璃釉</li>
                    <li><strong>烧制</strong>：将填好釉的坯体放入800℃左右的炉中烧制</li>
                    <li><strong>打磨抛光</strong>：多次打磨、镀金，使作品细腻光亮</li>
                  </ol>
                  <p>
                    景泰蓝作品色彩丰富，造型多样，纹饰精美，具有浓郁的民族特色和极高的艺术价值。
                  </p>
                </div>
              </div>

              <div class="heritage-section">
                <h2 class="section-title">传承情况</h2>
                <div class="section-content">
                  <p>
                    目前景泰蓝制作技艺主要通过师徒传承和专业学校教学等方式进行传承。北京有多位国家级非物质文化遗产代表性传承人致力于景泰蓝技艺的传承和创新。
                  </p>
                  <p>
                    为保护和传承这一珍贵的文化遗产，近年来国家和地方政府采取了多种措施，包括设立专项资金、举办展览和比赛、开展研学活动等，使景泰蓝这一传统工艺焕发新的生机。
                  </p>
                </div>
              </div>
            </div>

            <!-- 社交互动部分 -->
            <SocialInteraction :pageId="101" pageType="featured" />
          </div>

          <!-- 侧边栏 -->
          <div class="heritage-sidebar">
            <!-- 传承人信息 -->
            <div class="sidebar-box inheritors-box">
              <h3 class="sidebar-title">代表性传承人</h3>
              <ul class="inheritors-list">
                <li class="inheritor-item">
                  <div class="inheritor-image-placeholder">张同禄照片</div>
                  <div class="inheritor-info">
                    <div class="inheritor-name">张同禄</div>
                    <div class="inheritor-meta">国家级传承人</div>
                  </div>
                </li>
                <li class="inheritor-item">
                  <div class="inheritor-image-placeholder">王春华照片</div>
                  <div class="inheritor-info">
                    <div class="inheritor-name">王春华</div>
                    <div class="inheritor-meta">北京市级传承人</div>
                  </div>
                </li>
              </ul>
            </div>

            <!-- 保护单位 -->
            <div class="sidebar-box protection-box">
              <h3 class="sidebar-title">保护单位</h3>
              <div class="protection-info">
                <p>北京市文化和旅游局</p>
                <p>北京景泰蓝艺术研究所</p>
                <p>中国工艺美术协会</p>
              </div>
            </div>

            <!-- 相关遗产推荐 -->
            <div class="sidebar-box related-box">
              <h3 class="sidebar-title">相关遗产推荐</h3>
              <ul class="related-list">
                <li class="related-item">
                  <router-link to="/featured/su-zhou-embroidery" class="related-link">
                    <div class="related-image-placeholder">苏州刺绣图片</div>
                    <div class="related-name">苏州刺绣</div>
                  </router-link>
                </li>
                <li class="related-item">
                  <router-link to="/featured/peking-opera" class="related-link">
                    <div class="related-image-placeholder">京剧图片</div>
                    <div class="related-name">京剧</div>
                  </router-link>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import pic1 from '../../assets/jingTaiLan/pic1.jpg' // 制作技艺
import pic2 from '../../assets/jingTaiLan/pic2.jpg' // 工艺展示
import pic3 from '../../assets/jingTaiLan/pic3.jpg' // 作品展示
import pic4 from '../../assets/jingTaiLan/pic4.jpg' // 传统图案
import pic5 from '../../assets/jingTaiLan/pic5.jpg' // 制作流程
<<<<<<< HEAD
import SocialInteraction from '../../components/SocialInteraction.vue'

export default {
  name: 'JingTaiLanView',
  components: {
    SocialInteraction,
  },
=======

export default {
  name: 'JingTaiLanView',
>>>>>>> ba93636 (前端建设完成)
  data() {
    return {
      currentImage: pic1,
      images: [
        { src: pic1, title: '制作技艺' },
        { src: pic2, title: '工艺展示' },
        { src: pic3, title: '作品展示' },
        { src: pic4, title: '传统图案' },
        { src: pic5, title: '制作流程' },
      ],
    }
  },
  methods: {
    changeImage(image) {
      this.currentImage = image.src
    },
  },
}
</script>

<style scoped>
.featured-heritage-detail {
  padding: 40px 0;
}

/* 面包屑导航 */
.breadcrumbs {
  margin-bottom: 25px;
  color: #666;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* 遗产标题信息 */
.heritage-header {
  margin-bottom: 30px;
}

.heritage-header h1 {
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.heritage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px;
  background-color: rgba(184, 134, 11, 0.05);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.heritage-meta-item {
  display: flex;
  align-items: center;
}

.meta-label {
  font-weight: bold;
  margin-right: 10px;
  color: var(--secondary-color);
}

.level-badge {
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.level-national {
  background-color: #f0f8ff;
  color: #1e90ff;
}

.level-unesco {
  background-color: #fff0f5;
  color: #c71585;
}

/* 遗产详情主体 */
.heritage-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.heritage-main {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

/* 图片展示区 */
.heritage-images {
  margin-bottom: 30px;
}

.main-image {
  height: 400px;
  position: relative;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.main-image:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.main-image-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.main-image:hover .main-image-content {
  transform: scale(1.03);
}

.image-source {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 1;
  backdrop-filter: blur(2px);
}

.image-caption {
  text-align: center;
  padding: 8px;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
}

.thumbnail-list {
  display: flex;
  gap: 12px;
  padding: 0 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail {
  width: 100px;
  height: 80px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(184, 134, 11, 0.3);
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail:hover .thumbnail-image {
  transform: scale(1.08);
}

.thumbnail-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.7rem;
  padding: 3px 0;
  text-align: center;
  backdrop-filter: blur(2px);
}

/* 详细介绍 */
.heritage-sections {
  padding: 20px;
}

.heritage-section {
  margin-bottom: 30px;
}

.section-title {
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.section-content {
  line-height: 1.8;
  color: var(--text-color);
}

.section-content p {
  margin-bottom: 15px;
}

.section-content ol,
.section-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.section-content li {
  margin-bottom: 10px;
}

/* 社交互动部分 */
.social-interaction {
  padding: 20px;
  border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.interaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.login-tip {
  font-size: 0.9rem;
  color: #666;
}

.login-tip a {
  color: var(--primary-color);
  text-decoration: none;
}

.login-tip a:hover {
  text-decoration: underline;
}

.interaction-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.interaction-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
}

.interaction-btn:hover {
  background-color: rgba(184, 134, 11, 0.1);
}

.interaction-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.interaction-btn .count {
  font-weight: bold;
  color: var(--primary-color);
}

.interaction-btn.active .count {
  color: white;
}

/* 评论区域 */
.comments-section {
  margin-top: 30px;
}

.comments-section h3 {
  margin-bottom: 20px;
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  color: var(--dark-color);
}

.comment-form {
  margin-bottom: 30px;
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  background-color: #f9f9f9;
  resize: vertical;
}

.submit-comment-btn {
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.submit-comment-btn:hover:not(:disabled) {
  background-color: var(--accent-color);
}

.submit-comment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-author {
  color: var(--dark-color);
}

.comment-time {
  font-size: 0.8rem;
  color: #666;
}

.comment-body {
  line-height: 1.6;
}

/* 侧边栏 */
.heritage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-box {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.sidebar-title {
  padding: 15px;
  background-color: rgba(184, 134, 11, 0.1);
  color: var(--dark-color);
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.inheritors-list,
.related-list {
  padding: 15px;
  list-style: none;
}

.inheritor-item,
.related-item {
  display: flex;
  gap: 10px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}

.inheritor-item:last-child,
.related-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.inheritor-image-placeholder,
.related-image-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  color: var(--secondary-color);
  font-size: 0.8rem;
  border: 1px dashed var(--primary-color);
  border-radius: 4px;
}

.inheritor-info {
  flex: 1;
}

.inheritor-name {
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.inheritor-meta {
  font-size: 0.85rem;
  color: #666;
}

.related-link {
  display: flex;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

.related-link:hover {
  transform: translateY(-2px);
}

.related-name {
  flex: 1;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.protection-info {
  padding: 15px;
}

.protection-info p {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .heritage-body {
    grid-template-columns: 1fr;
  }

  .main-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .heritage-meta {
    flex-direction: column;
    gap: 10px;
  }

  .thumbnail-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-image {
    height: 250px;
  }

  .interaction-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .thumbnail {
    width: 85px;
    height: 65px;
  }
}
</style>
